import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/Home.vue'
import Denglu from "@/components/wang/denglu.vue";

import SystemHomepage from "@/components/SystemHomepage.vue"
// import { component } from 'vue/types/umd';

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('../views/About.vue'),
    children: [{
      path: '/',
      component: Denglu,
    },
    {
      path: 'SystemHomepage',
      component: SystemHomepage
    }
    ],
  }
]

const router = new VueRouter({
  routes
})

export default router
